import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: [
      'pages/detail/main',
      'pages/goods-list/main',
      'pages/goods-detail/main',
      'pages/user/main',
      'pages/order-list/main',
      'pages/coupon-list/main',
      'pages/book-list/main',
      'pages/buy/main',
      'pages/order-detail/main',
      'pages/refund/main',
      'pages/kefu/main',
      'pages/coupon-detail/main',
      '^pages/index/main'],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: '钟山旅行',
      navigationBarTextStyle: 'black'
    },
    requiredBackgroundModes: ['audio'],
    tabBar: {
      color: '#252729',
      selectedColor: '#5093EB',
      backgroundColor: '#ffffff',
      borderStyle: 'black',
      list: [{
        pagePath: 'pages/index/main',
        iconPath: 'static/img/map-dark.png',
        selectedIconPath: 'static/img/map.png',
        text: '地图'
      }, {
        pagePath: 'pages/goods-list/main',
        iconPath: 'static/img/shop-dark.png',
        selectedIconPath: 'static/img/shop.png',
        text: '门票'
      }, {
        pagePath: 'pages/user/main',
        iconPath: 'static/img/user-dark.png',
        selectedIconPath: 'static/img/user.png',
        text: '我的'
      }]
    }
  }
}
